package jtk.project4.fleet.field;

import jtk.project4.fleet.domain.FuelTank;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.LabelField.Align;


public class AddNewFuelTankField extends GroupControl<FuelTank>
{
	private TextField EnterANewTankNameField;
	
	public AddNewFuelTankField(String bindID)
	{
		
		setBindID(bindID);
		createFields();
		createLayout();
	
	}
	
	private void createFields()
	{
		EnterANewTankNameField = new TextField ("desc", 15);
		EnterANewTankNameField.setRequired(true);
	}
	
	private void createLayout()
	{
		setLayout(new FormLayout())
		.addLabel("label.EnterANewTankName")
		.addRow().
		addField(EnterANewTankNameField)
		;	
	}
}
